import BaseApp from '../BaseApp';
import EventEmitter from '@/lib/core/EventEmitter';

export default abstract class BaseTabLayoutApp extends BaseApp {

    public initApp() {
        super.initApp();
        // 监听返回按钮
        EventEmitter.onSystem({ name: 'navitembtn' }, (data) => {
            if (data.type !== 'left' || data.index !== 0) {
                return;
            }
            this.$apicloud.closeWin();
        });
    }
}
